import 'dart:convert';
/// devId : 10001
/// devAddress : "北京市市辖区东城区测试"
/// devProvinceCode : "110000"
/// devProvince : "北京市"
/// devCityCode : "110100"
/// devCity : "市辖区"
/// devCountyCode : "110101"
/// devCounty : "东城区"
/// contractName : "13426215444"
/// contractTel : "18611175144"
/// userId : 939

MyDeviceListModel myDeviceListModelFromJson(String str) => MyDeviceListModel.fromJson(json.decode(str));
String myDeviceListModelToJson(MyDeviceListModel data) => json.encode(data.toJson());
class MyDeviceListModel {
  MyDeviceListModel({
      this.devId, 
      this.devAddress, 
      this.devProvinceCode, 
      this.devProvince, 
      this.devCityCode, 
      this.devCity, 
      this.devCountyCode, 
      this.devCounty, 
      this.contractName, 
      this.contractTel, 
      this.userId,});

  MyDeviceListModel.fromJson(dynamic json) {
    devId = json['devId'];
    devAddress = json['devAddress'];
    devProvinceCode = json['devProvinceCode'];
    devProvince = json['devProvince'];
    devCityCode = json['devCityCode'];
    devCity = json['devCity'];
    devCountyCode = json['devCountyCode'];
    devCounty = json['devCounty'];
    contractName = json['contractName'];
    contractTel = json['contractTel'];
    userId = json['userId'];
  }
  int? devId;
  String? devAddress;
  String? devProvinceCode;
  String? devProvince;
  String? devCityCode;
  String? devCity;
  String? devCountyCode;
  String? devCounty;
  String? contractName;
  String? contractTel;
  int? userId;
MyDeviceListModel copyWith({  int? devId,
  String? devAddress,
  String? devProvinceCode,
  String? devProvince,
  String? devCityCode,
  String? devCity,
  String? devCountyCode,
  String? devCounty,
  String? contractName,
  String? contractTel,
  int? userId,
}) => MyDeviceListModel(  devId: devId ?? this.devId,
  devAddress: devAddress ?? this.devAddress,
  devProvinceCode: devProvinceCode ?? this.devProvinceCode,
  devProvince: devProvince ?? this.devProvince,
  devCityCode: devCityCode ?? this.devCityCode,
  devCity: devCity ?? this.devCity,
  devCountyCode: devCountyCode ?? this.devCountyCode,
  devCounty: devCounty ?? this.devCounty,
  contractName: contractName ?? this.contractName,
  contractTel: contractTel ?? this.contractTel,
  userId: userId ?? this.userId,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['devId'] = devId;
    map['devAddress'] = devAddress;
    map['devProvinceCode'] = devProvinceCode;
    map['devProvince'] = devProvince;
    map['devCityCode'] = devCityCode;
    map['devCity'] = devCity;
    map['devCountyCode'] = devCountyCode;
    map['devCounty'] = devCounty;
    map['contractName'] = contractName;
    map['contractTel'] = contractTel;
    map['userId'] = userId;
    return map;
  }

}